cmake_minimum_required(VERSION 3.10)
project(Breakout)

# 设置 C++ 标准
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)


set(SDL3_ROOT "C:/Users/Admin/Desktop/brick/SDL3-devel-3.2.18-VC/SDL3-3.2.18")


include_directories(
    ${SDL3_ROOT}/include
)


# 项目源文件
set(SOURCES
    src/main.cpp
    src/bricks.cpp
    src/GameWindows.cpp
    src/SmallBar.cpp
    src/WoodenBoards.cpp
)

set(HEADERS
    src/bricks.h
    src/define.h
    src/GameWindows.h
    src/SmallBar.h
    src/WoodenBoards.h
)

link_directories(
    "C:\\Users\\Admin\\Desktop\\brick\\SDL3-devel-3.2.18-VC\\SDL3-3.2.18\\lib"
    "C:\\Users\\Admin\\Desktop\\brick\\SDL3-devel-3.2.18-VC\\SDL3-3.2.18\\lib\\x64"
)

add_executable(Breakout ${SOURCES} ${HEADERS})


target_link_libraries(Breakout
    SDL3.lib
)

#设置为窗口程序
set_target_properties(Breakout PROPERTIES LINK_FLAGS "/SUBSYSTEM:WINDOWS")